package org.dromara.oce.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.oce.domain.OceAdvertiserDataAnalysis;
import org.dromara.oce.domain.OceAdvertiserReferralRelation;
import org.dromara.oce.domain.req.OceAdvertiserDataAnalysisQo;
import org.dromara.oce.domain.vo.OceAdvertiserDataAnalysisVo;

import java.util.List;

/**
 * @desc:接口层
 * @autor: hhl
 * @date: 2025-05-19 15:28:23<br>
 */
public interface OceAdvertiserDataAnalysisService extends IService<OceAdvertiserDataAnalysis> {

    /**
     * 分页查询广告主数据分析列表
     *
     * @param qo        查询条件
     * @param pageQuery 分页参数
     * @return 广告主数据分析分页列表
     */
    TableDataInfo<OceAdvertiserDataAnalysisVo> queryPageList(OceAdvertiserDataAnalysisQo qo, PageQuery pageQuery);

    /**
     * 查询符合条件的广告主数据分析列表
     *
     * @param qo 查询条件
     * @return 广告主数据分析列表
     */
    List<OceAdvertiserDataAnalysisVo> queryList(OceAdvertiserDataAnalysisQo qo);

    void syncOceDataAnalysis(List<OceAdvertiserReferralRelation> batchList, String date, Long dateTimestamp);

    void syncOceDataAnalysis();

}
